﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
    <div data-options="region:'north',split:false," style="height: 66px; line-height: 66px; padding-left: 16px; overflow: hidden;">
        <input type="hidden" id="Action" name="Action" />
        <h1><em><b>SiteMateCMS - 免费开源【sitemate.codeplex.com】</b></em></h1>
    </div>
    <div data-options="region:'center',split:false," style="text-align: center; overflow: hidden;">
        <form id="ff-indexmenu" method="post" enctype="multipart/form-data">
            <div id="panel" class="easyui-tabs" style="width: 100%; background: #ffffff;" data-options="border:true,plain:false,tools:'#dlg-toolbar',">
                <div title="欢迎使用"></div>
            </div>
            <div id="dlg-toolbar">
                <a id="userName" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-user',border:false,plain:true,">游客</a>
                <a id="skin" href="javascript:void(0)" class="easyui-menubutton" data-options="iconCls:'icon-skin',border:false,plain:true,menu:'#mm-skin',">换肤</a>
                <a id="exit" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-exit',border:false,plain:true,">退出</a>
            </div>
            <div id="mm-skin" class="easyui-menu" style="display: none; width: 100px;">
                <div>Default</div>
                <div>Gray</div>
                <div>Metro</div>
                <div>Bootstrap</div>
                <div>Black</div>
                <div class="menu-sep"></div>
                <div>Metro-Blue</div>
                <div>Metro-Gray</div>
                <div>Metro-Green</div>
                <div>Metro-Orange</div>
                <div>Metro-Red</div>
                <div class="menu-sep"></div>
                <div>ui-Cupertino</div>
                <div>ui-Dark-Hive</div>
                <div>ui-Pepper-Grinder</div>
                <div>ui-Sunny</div>
            </div>
        </form>
    </div>
    <script type="text/javascript">
        (function ($) {
            window.xbase.logonNo('#userName'); // 访问本页面，如未登录则跳转到login.html。
            $('#exit').click(function () {
                $('#ff-indexmenu').form('submit', {
                    url: '/ashx/App/Exit.ashx?url=' + window.location.pathname + '&rnd=' + Math.random(),
                    success: function(result) {
                        if (result == null || result == '') return window.xbase.return('系统错误', 'Ajax返回空值，请稍后重试！<br />ps:如果您使用了360浏览器，请换之！', 'error');
                        var json = window.xbase.json(result);
                        $.messager.alert('提示信息', json.error + ' - ' + json.action + ' - ' + json.message.m_StringValue, 'error');
                        if (json.error == 0)
                            document.location.reload(true);
                        else
                            $.messager.alert('错误提示', json.message.m_StringValue, 'error');
                    }
                });
            });
            $('#mm-skin').menu({ onClick: function (item) { window.xbase.theme(item.text); } });
            if ($.cookie('themesName')) { window.xbase.theme($.cookie('themesName')); }
        })(jQuery);
    </script>
</body>
</html>
